package com.cardvalue.sys.tool;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

/**
 * 广播  主要的作用就是更新UI
 * Created by cardvalue on 2016/4/12.
 */
public class ReceiverDialog extends BroadcastReceiver{
    private ReceiverUI receiverUI;
    public interface  ReceiverUI{
        void onReceive();
    }
    @Override
    public void onReceive(Context context, Intent intent) {
        receiverUI.onReceive();
    }

    public void setReceiverUI(ReceiverUI receiverUI) {
        this.receiverUI = receiverUI;
    }
}
